package com.just.bz_back.util;


import com.just.bz_back.constant.ConstantData;
import org.apache.commons.codec.digest.DigestUtils;

/**
 * md5开发工具类
 * @author : baibaiwucahng
 * @date : 2019/8/31  12:06
 */

public class MD5Util {

    /**
     * 密码加密2次
     * salt:"JUST_WLXH"
     * @param key
     * @return
     */
    public static String makeMd5(String key)
    {
      return new String(DigestUtils.md5Hex(DigestUtils.md5Hex((ConstantData.SALT+key).getBytes())));
    }

}
